import type { PlusColumn } from "plus-pro-components";

const tableColumns: TableColumnList = [
  {
    label: "角色名称",
    prop: "name"
  },
  {
    label: "角色编码",
    prop: "code"
  },
  {
    label: "角色描述",
    prop: "description"
  },
  {
    label: "状态",
    prop: "status",
    slot: "status"
  },
  {
    label: "创建时间",
    prop: "createdTime"
  },
  {
    label: "操作",
    slot: "operate",
    fixed: "right",
    width: 250
  }
];

const fromColumns: PlusColumn[] = [
  {
    label: "角色名称",
    prop: "name",
    valueType: "copy"
  },
  {
    label: "角色编码",
    prop: "code",
    valueType: "copy"
  },
  {
    label: "状态",
    prop: "status",
    valueType: "select",
    options: [
      {
        label: "禁用",
        value: "0"
      },
      {
        label: "可用",
        value: "1"
      }
    ]
  }
];

export { fromColumns, tableColumns };
